<?php

class Cahier extends Produit {
    private $dimension;
    private $lignage;
    
    function __construct($reference, $prix, $dimension, $lignage) {
        $this->dimension = $dimension;
        $this->lignage = $lignage;
        parent::__construct($reference, $prix);
    }
    public function getDimension() {
        return $this->dimension;
    }

    public function getLignage() {
        return $this->lignage;
    }

    public function __toString() {
         return "Dimension: ". $this->dimension . "\nLignage: ". $this->lignage;
    }

    function getClasse(){
        return "Cahier";
    }
}
?>
